<h1>User login</h1>
<% if flash[:message] %>
  <div>
    <%= flash[:message] %>
  </div>
<% end %>

<% if flash[:error] %>
  <div>
    <%= flash[:error] %>
  </div>
<% end %>

<%= form_tag(:action => 'process_login') %>
  <span>Username:</span><%= text_field "user", "username" %> <br />
  <span>Password:</span><%= password_field "user", "password" %> <br />
  <%= submit_tag %>

  <div>
    <h4> New user? <%= link_to 'Register Now', new_user_path %></h4>
  </div>
</form>